//
//  BaseIconView.h
//  MarryBackEnd
//
//  Created by KH_MoSi on 2020/7/29.
//  Copyright © 2020 WPP. All rights reserved.
//
/**
 包含lineView、arrowIV
 */
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BaseIconView : UIControl
@property(nonatomic,strong)BaseIconModel *iconModel;
/// left:16 width:self.width - 16
@property(nonatomic,strong)UIView *lineView;
/// right:-13 size:14x14
@property(nonatomic,strong)UIImageView *arrowIV;
/// frame没写
@property(nonatomic,strong)UIImageView *leftIV;
/// 没有frame kcolor51 fon:15 alig:NSTextAlignmentLeft
@property(nonatomic,strong)UILabel *leftLab;
//没有frame kcolor51 fon:15 alig:NSTextAlignmentRight
@property(nonatomic,strong)UILabel *rightLab;
/// 没有frame  kColor51 font:15 
@property(nonatomic,strong)UITextField *textField;
/// 调整frame 用于固定的view 
- (void)adjustFixedFrame;

/// 获取textField的placeholder
- (NSMutableAttributedString *)getPlaceholder;

/// 获取textField的placeholder
/// @param color color
/// @param font font
- (NSAttributedString *)getPlaceholderTextColor:(UIColor *)color font:(UIFont *)font;

/// 监听TextField
/// @param textField textField对象
- (void)addObserverPhoneTF:(UITextField *)textField;
@end

NS_ASSUME_NONNULL_END

/**
 //重写
 - (UITextField *)textField
 {
     UITextField *tf = [super textField];
     if (CGRectEqualToRect(tf.frame, CGRectZero)) {
         tf.frame = CGRectMake(100*ADAPTER_WIDTH, 0, self.width - 116*ADAPTER_WIDTH, self.height);
     }
     return tf;
 }
 */
